package com.loubii.account.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class UserBean {
    //不能用int
    @Id(autoincrement = true)
    private Long id;
    //姓名
    @NotNull
    @Unique
    private String name_id;
    //学号
    @NotNull
    private String password;

    @Generated(hash = 1580429959)
    public UserBean(Long id, @NotNull String name_id, @NotNull String password) {
        this.id = id;
        this.name_id = name_id;
        this.password = password;
    }

    @Generated(hash = 1203313951)
    public UserBean() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName_id() {
        return name_id;
    }

    public void setName_id(String name_id) {
        this.name_id = name_id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
